Tegra: enable 'ENABLE_ASSERTIONS' for all builds
authorVarun Wadekar <[email protected]>
Wed, 26 Apr 2017 20:48:19 +0000 (13:48 -0700)
committerVarun Wadekar <[email protected]>
Wed, 26 Apr 2017 20:54:30 +0000 (13:54 -0700)
This patch changes the platform Makefile to set `ENABLE_ASSERTIONS` to
1 instead of the deprecated option `ASM_ASSERTION`. This also pulls in
C assertions in release mode.

Signed-off-by: Varun Wadekar <[email protected]>
plat/nvidia/tegra/platform.mk

index 5f7e8c8f64584225fdb9ac5e8b334e096a523794..1f7a4dcdd4e5ff6d9e4dab0d302ea34c7df938cc 100644 (file)
 
 SOC_DIR                        :=      plat/nvidia/tegra/soc/${TARGET_SOC}
 
-# enable ASM_ASSERTION for the build
-ASM_ASSERTION          :=      1
-$(eval $(call add_define,ASM_ASSERTION))
-
 # dump the state on crash console
 CRASH_REPORTING                :=      1
 $(eval $(call add_define,CRASH_REPORTING))
 
+# enable assert() for release/debug builds
+ENABLE_ASSERTIONS      :=      1
+
 # Disable the PSCI platform compatibility layer
 ENABLE_PLAT_COMPAT     :=      0